﻿@model RedSand.Site.Models.LoginModel
@if (!User.Identity.IsAuthenticated)
{
    <script type="text/javascript" language="javascript">
        $(document).ready(function () {
            $('#panel-login').hide();
        })
    </script>
    <div id="panel-login" class="clearfix" style="display:none">
        <div class="fr login">
            @using (Ajax.BeginForm("PanelLogin", new AjaxOptions { OnSuccess = "Objlogin.LoginError" }))
            {
                <h3>@Html.Translate("Login", "Account")</h3>
                <label id="msgErrorLogin" style="display: none">
                </label>
                <div class="clearfix form">
                    <label>@Html.Translate("Username", "Account")</label>
                    @Html.TextBoxFor(model => model.Username, new { @class = "txt_Small" })
                </div>
                <div class="clearfix form">
                    <label>@Html.Translate("Password", "Account")</label>
                    @Html.PasswordFor(model => model.Password, new { @class = "txt_Small" })
                </div>
                <div class="clearfix form">
                    @Html.CheckBoxFor(model => model.RememberMe, new { @style = "margin-left:105px" })
                    <label style="text-align: left; width: 150px">@Html.Translate("RememberMe", "Account")</label>
                </div>
                <div class="clearfix form">
                    <input name="login" type="submit" style="margin-left:103px;" value="@Html.Translate("Login", "Account")" />
                </div>
            }
        </div>
        <div class="fr" style="background: #ccc; width: 1px; height: 210px;">
        </div>
        @Html.Action("PanelRegister", "Account")
    </div>
}
